<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.css" rel="stylesheet" />
		<link href="../css/common.css" rel="stylesheet" />
		<style>
			.about-top{
				margin-top: 1rem;
				text-align: center;
				margin-bottom: 2rem;
			}
			.about-top img{
				width: 6rem;
				border-radius: 0.25rem;
				box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
			}
			.about-top .app-name{
				margin-top: 0.25rem;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav xq-window-header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">关于</h1>
		</header>
		<div class="mui-content">
			<div class="about-top">
				<img src="../images/logo-192x192.png"/>
				<div class="app-name">
					<h5>诗文app :<span id="version-show">1.0</span></h5>
				</div>
			</div>
			<div>
				<ul class="mui-table-view">
				    <li class="mui-table-view-cell" to-with-url="/pages/yinsi.html"><span class="mui-navigate-right">服务及隐私协议</span></li>
				</ul>
			</div>
		</div>
		<script src="../js/mui.js"></script>
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../js/commonUtils.js"></script>
		<script type="text/javascript">
			mui.init();
			mui.ready(function(){
				if (mui.os.plus) {
					return;
				}
				initAboutPage()
			});
			mui.plusReady(function () {
				//SettingInfoManager.regiserPageAndSetPageFontFromSetting("about",$('body'));

			    plus.runtime.getProperty(plus.runtime.appid,function(inf){
					$("#version-show").html(inf.version)
		　　　　});
				initAboutPage()
			});
			function initAboutPage(){
				SettingInfoManager.setPageFontFromSetting();
				//
				$('[to-with-url]').on('tap',function(e){
					var target=e.target;
					var toWithUrl=$(target).closest('[to-with-url]').attr('to-with-url');
					if(toWithUrl){
						var timestamp=new Date().getTime();
						mui.openWindow({
							url: 'remotePageIframe.html?timestamp='+timestamp,
							id: 'remotePageIframe.html-'+timestamp,
							extras:{
								title : '服务及隐私条款',
								toPageUrl : toWithUrl
							}
						})
					}
				});
			}
		</script>
	</body>

</html>
